﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using Entities;

namespace eestec.Controllers.API
{
    public class BaseController : ApiController
    {
        protected EestecEntities db = null;
        
        public BaseController(){
            db = new EestecEntities();
            db.Configuration.LazyLoadingEnabled = false;
        }

        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }
    }
}